package com.bjsxt.livegoods.buyaction.client.service.impl;

import com.bjsxt.livegoods.buyaction.client.service.BuyactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class BuyactionServiceImpl implements BuyactionService {
    @Qualifier("com.bjsxt.livegoods.buyaction.client.service.BuyactionService")
    @Autowired
    private BuyactionService buyactionService;
    @Override
    public Map<String, Object> buyaction(String id, String user) {
        Map<String, Object> buyaction = buyactionService.buyaction(id, user);

        Map<String, Object> result = new HashMap<>();
        result.put("status", 500);
        result.put("msg", "手慢了，已被他人抢先预定!");
        return buyaction;
    }
}
